/*
 *
 * Copyright (c) 2023 - future
 * @author fzh
 * @email e_341877120_mail@163.com
 * @link https://mvnrepository.com/search?q=io.github.xrfzh.cn
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package cn.xrfzh.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 系统日志类型枚举
 */
public enum LogType {

	/**
	 * 登录
	 */
	LOGIN(0, "登录"),

	/**
	 * 注销
	 */
	LOGOUT(1, "注销"),

	/**
	 * 查询
	 */
	SELECT(2, "查询"),

	/**
	 * 新增
	 */
	INSERT(3, "新增"),

	/**
	 * 更新
	 */
	UPDATE(4, "更新"),

	/**
	 * 删除
	 */
	DELETE(5, "删除"),

	/**
	 * 上传
	 */
	UPLOAD(6, "上传"),

	/**
	 * 下载
	 */
	DOWNLOAD(7, "下载"),

	/**
	 * 导入
	 */
	IMPORT(8, "导入"),

	/**
	 * 导出
	 */
	EXPORT(9, "导出");

	@EnumValue
	private final Integer key;

	@JsonValue
	private final String detail;

	LogType(Integer key, String detail) {
		this.key = key;
		this.detail = detail;
	}

}
